package per.dj.testpro.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import per.dj.testpro.model.SendMessage;

import java.util.Date;
import java.util.List;

@Mapper
@Component
public interface SendMessageMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SendMessage record);

    int insertSelective(SendMessage record);

    SendMessage selectByPrimaryKey(Integer id);

    SendMessage selectByImeiAndRandom(@Param("imeiNo")String imeiNo,@Param("random")String random);

    int updateByPrimaryKeySelective(SendMessage record);

    int updateByPrimaryKey(SendMessage record);

    List<SendMessage> selectByTimeTask(@Param("isSuccess")int isSuccess, @Param("createTime")Date createTime);
}